package com.yjd.comm.sms.service;

import java.util.List;

import com.yjd.comm.base.model.ResultModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.sms.model.SmsTemplateModel;
import com.yjd.comm.system.dto.OperParamDto;

/**
 * <b>description</b>：短信模板 <br>
 * <b>time</b>：2014-11-11下午1:41:56 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public interface ISmsTemplateService extends IBaseService {
	/**
	 * 新增
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ResultModel insert(SmsTemplateModel model, OperParamDto operParamDto)
			throws Exception;

	/**
	 * 根据文件服务id删除对象
	 * 
	 * @param idSmsTemplate
	 *            文件服务id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long idSmsTemplate, OperParamDto operParamDto)
			throws Exception;

	/**
	 * 新增
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ResultModel update(SmsTemplateModel model, OperParamDto operParamDto)
			throws Exception;

	/**
	 * 根据模板code获取模板
	 * 
	 * @param smsTemplateCodeEnum
	 * @return
	 */
	public SmsTemplateModel getSmsTemplateModelByCode(String code)
			throws Exception;

	/**
	* 根据模板code列表获取模板列表
	* @param codeList
	* @return
	* @throws Exception
	 */
	public List<SmsTemplateModel> getSmsTemplateModelsByCodes(List<String> codeList)
			throws Exception ;
}
